import request from '@/utils/request';

export const ElectricityCollectionApi = {
  contextPath: '/patorl', //按照实际应
  getdata: (data) => { //分页查询
    return request({
      url: ElectricityCollectionApi.contextPath + '/en-patrol-task-electricity/page',
      method: 'POST',
      data: data
    })
  },
  exportXls: (data) => { //导出//
    return request({
      url: ElectricityCollectionApi.contextPath + '/en-patrol-task-electricity/exportExcel',
      method: 'POST',
      data: data,
      responseType: 'blob'
    })
  },
}
